/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Files;

import General.CurrentData;
import other.Wizard;
import java.io.Serializable;
import java.util.HashMap;

/**
 *
 * @author David
 */
public class Configuration implements Serializable
{

    private HashMap<String, Object> settings = new HashMap<String, Object>();

    /**
     *
     */
    public Configuration()
    {
        settings.put("exitwithoutprompt", "false");
        settings.put("fullscreen", "true");
        settings.put("showtexturepreview", "true");
        settings.put("assetbrowsershown", "true");
        settings.put("showgrid", "true");
        settings.put("showscenery", "false");
        settings.put("showfilters", "true");
        settings.put("showwire", "false");
        settings.put("camspeed", "100");
        settings.put("gridgap", "20");
        settings.put("gridx", "1000");
        settings.put("gridy", "1000");
        settings.put("treesort", "a-z(no_cs)");
        settings.put("showallmotionpaths", "false");
    }

    /**
     *
     * @return
     */
    public HashMap<String, Object> getSettings()
    {
        return settings;
    }

    /**
     *
     */
    public void save()
    {
        Wizard.saveFile("dat//config.cfg", CurrentData.getConfiguration());
    }
}
